import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/debtor/` + url, ...arg)
export default {
	getDebtorByCaseId(data) {
		return request('getDebtorByCaseId/' + data, '', 'get')
	},
	editDebtor(data) {
		return request('edit', data, 'post')
	},
	getPlaintextById(debtorId, type) {
		return request('getPlaintextById/' + debtorId + '?type=' + type, '', 'get')
	}
}
